package binary;

public class BinaryAndHexDemo {
    public static void main(String[] args) {
       Integer i=100;
       int m=0001_0101_0101;
        System.out.println(Integer.toBinaryString(i));
        System.out.println(Integer.toHexString(i));
        System.out.println(Integer.toHexString(m));
        System.out.println(Integer.toBinaryString(Integer.MAX_VALUE));
        System.out.println(Integer.toBinaryString(Integer.MIN_VALUE));
        System.out.println(Integer.toBinaryString(-1));
        System.out.println(Integer.toBinaryString(-41));
        System.out.println(-41);
    }
}

